#include "stream_utils.h"
#include "node.h"
#include "map.h"

std::ostream& operator<<(std::ostream& str, const Node& node)
{
    return str << node.GetChar();
}

std::ostream& operator<<(std::ostream& str, const Map& map)
{
    for (row r = 0; r < map.m_row; ++r)
    {
        for (col c = 0; c < map.m_col; ++c)
            str << *map.m_node[r][c];
        str << std::endl;
    }
    return str;
}
